<extend file='../master'/>
<block name="content">
	<!-- TAB NAVIGATION -->
	<ul class="nav nav-tabs">
		<li class="active"><a href="#tab1" >列表</a></li>
		<li><a href="{{u('post',['m'=>$_GET['m']])}}">添加</a></li>
	</ul>
	<br/>
	<div class="panel panel-default">
		<div class="panel-body">
		   <table class="table table-hover">
		   	<thead>
		   		<tr>
		   			<th>编号</th>
				    <th>关键词</th>
				    <th>操作</th>
		   		</tr>
		   	</thead>
		   	<tbody>
		    <foreach from="$data" value="$d">
		   		<tr>
		   			<td>{{$d['kid']}}</td>
				    <td>{{$d['keyword']}}</td>
				    <td>
					    <div class="btn-group">
						    <a href="{{u('post',['kid'=>$d['kid'],'m'=>$_GET['m']])}}" type="button" class="btn btn-success">编辑</a>
						    <a href="" type="button" class="btn btn-default">删除</a>
					    </div>
				    </td>
		   		</tr>
		    </foreach>
		   	</tbody>
		   </table>
			{{$data->links()}}
		</div>
	</div>
</block>